LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_LIB_TYPE = STATIC
LUA_PATH = $(LOCAL_PATH)/../lua

include $(LOCAL_PATH)/../OpenCV-android-sdk/sdk/native/jni/OpenCV.mk
LOCAL_MODULE := luacv
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../
LOCAL_SRC_FILES = $(LOCAL_PATH)/luacv.cpp $(wildcard $(LUA_PATH)/*.c)
LOCAL_CPPFLAGS += -v -frtti -fopenmp
LOCAL_LIBS += -lstdc++ -llog -lc -lm 
include $(BUILD_SHARED_LIBRARY)
# include $(BUILD_EXECUTABLE)
